// API响应通用类型

export interface ApiResponse<T = any> {
  data: T;
  message?: string;
  code?: number;
  success?: boolean;
}

export interface ApiError {
  message: string;
  code?: number;
  details?: any;
}

export interface PaginatedResponse<T> {
  records: T[];
  total: number;
  page: number;
  size: number;
  totalPages: number;
}

export interface QueryParams {
  page?: number;
  size?: number;
  sortBy?: string;
  sortDir?: 'ASC' | 'DESC';
}
